package com.nstar.model.orderexpress;

import java.io.Serializable;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="repository_type"
 *     
*/
public class RepositoryType implements Serializable {

    /** identifier field */
    private String repId;

    /** nullable persistent field */
    private String repDesc;

    /** persistent field */
    private Set repositories;

    /** full constructor */
    public RepositoryType(String repId, String repDesc, Set repositories) {
        this.repId = repId;
        this.repDesc = repDesc;
        this.repositories = repositories;
    }

    /** default constructor */
    public RepositoryType() {
    }

    /** minimal constructor */
    public RepositoryType(String repId, Set repositories) {
        this.repId = repId;
        this.repositories = repositories;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="REP_ID"
     *         
     */
    public String getRepId() {
        return this.repId;
    }

    public void setRepId(String repId) {
        this.repId = repId;
    }

    /** 
     *            @hibernate.property
     *             column="REP_DESC"
     *             length="100"
     *         
     */
    public String getRepDesc() {
        return this.repDesc;
    }

    public void setRepDesc(String repDesc) {
        this.repDesc = repDesc;
    }

    /** 
     *            @hibernate.set
     *             lazy="true"
     *             inverse="true"
     *             cascade="none"
     *            @hibernate.collection-key
     *             column="REP_ID"
     *            @hibernate.collection-one-to-many
     *             class="com.nstar.model.orderexpress.Repository"
     *         
     */
    public Set getRepositories() {
        return this.repositories;
    }

    public void setRepositories(Set repositories) {
        this.repositories = repositories;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("repId", getRepId())
            .toString();
    }

}
